/**
 *
 * @param title String提示语
 * @param vm 组件实例
 * @returns {Promise<unknown>}
 */
export function confirmTheBox(title, vm) {
    return new Promise((resolve, reject) => {
        vm.$confirm(title, '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
        }).then(() => {
            resolve(1)
        }).catch(() => {
            reject(0)
        })
    })
}
